<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- 要先转化为行内块元素才可以使用 -->
    <style>
      img {
        /* vertical-align: bottom;底线 */
        vertical-align: middle; /*中线*/
      }
    </style>
  </head>
  <body>
    <img src="D:/html/vscode/image/ldh.jpg" alt="" />舞台上的刘德华
  </body>
</html>
